#ifndef _TARGET_H_
#define _TARGET_H_
#include "regx52.h"

extern void HC138Set(unsigned char ucCfg);
extern void Display(unsigned long ulDat,unsigned char ucBit);
extern void delay(unsigned int usDelTick);
extern void Disp(unsigned char ucDat2,unsigned char ucDat3,unsigned char ucMode,unsigned char ucWkmode);
extern void Timer0_Init(void);
extern void wrbyte_24c02(unsigned char add,unsigned char dat);
extern unsigned char rdbyte_24c02(unsigned char add);

#define CHANNEL_0 0x00
#define CHANNEL_1 0x01
#define CHANNEL_2 0x02
#define CHANNEL_3 0x03
extern void init_pcf8591(unsigned char x);
extern unsigned char adc_pcf8591(void);
#endif
